#!/bin/bash
S=`ps aux|grep send_sys_email_job|grep -v grep`
if ["$RS" = ""]; then
  echo "No send_sys_email instance, start a new one!"
  /usr/bin/ruby /var/www/vhosts/hideto/html/www.beyondrails.com/send_sys_email_job.rb
else
  echo "Already exists a send_sys_email_job instance, exit!"
  exit
fi
